package com.czk.stater;

/**
 * 自动配置的组件
 * @Author:ChenZhangKun
 * @Date: 2020/10/19 20:51
 */
public class HelloService {
    private HelloProperties helloProperties;

    public void setHelloProperties(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }

    public String hello(String name){
        return helloProperties.getPrefix()+"-"+name+"-"+helloProperties.getSuffix();
    }
}
